package org.dromara.system.domain.bo;

import org.dromara.system.domain.TResponse;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 问卷收集业务对象 t_response
 *
 * @author Lion Li
 * @date 2024-10-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TResponse.class, reverseConvertGenerate = false)
public class TResponseBo extends BaseEntity {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空", groups = { EditGroup.class })
    private Integer responseId;

    /**
     * 关联表单
     */
    @NotNull(message = "关联表单不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer surveyId;

    /**
     * 送气工
     */
    @NotBlank(message = "送气工不能为空", groups = { AddGroup.class, EditGroup.class })
    private String userId;

    /**
     * 检查日期（表单提交时间）
     */
    private String responseTime;


    private String responseContent;


}
